package com.luoli.mytab01;

import android.app.Fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class ChatFragment extends Fragment {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.e("yao", this.getClass().getName() + " onCreate");
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        Log.e("yao", this.getClass().getName() + " onCreateView");
        return inflater.inflate(R.layout.tab01, container, false);
    }

    @Override
    public void onStart() {
        super.onStart();
        Log.e("yao", this.getClass().getName() + " onStart");
    }

    @Override
    public void onResume() {
        super.onResume();
        Log.e("yao", this.getClass().getName() + " onResume");
    }

    @Override
    public void onHiddenChanged(boolean hidden) {
        super.onHiddenChanged(hidden);
        if (hidden) {
            Log.e("yao", this.getClass().getName() +"hidden为true+"+ hidden);
        } else {
            Log.e("yao", this.getClass().getName() +"hidden为false+"+ hidden);
        }
    }

    @Override
    public void onPause() {
        super.onPause();
        Log.e("yao", this.getClass().getName() + " onPause");
    }


    @Override
    public void onStop() {
        super.onStop();
        Log.e("yao", this.getClass().getName() + " onStop");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.e("yao", this.getClass().getName() + " onDestroy");
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        Log.e("yao", this.getClass().getName() + " onDestroyView");
    }
}
